﻿namespace Cartographer.Adapters
{
	public abstract class Adapter<TCart, TOut>
		: IAdapter<TCart, TOut>
	{
		public string Filename { get; set; }
		public TCart CartographerObject { get; set; }

		protected Adapter(string filename)
		{
			Filename = filename;
			Initialize();
		}

		public abstract void Initialize();
		public abstract TOut Adapt();
	}
}